package com.codedrunks.puremvc.as3.multicore.utlities.model
{
	import org.puremvc.as3.multicore.patterns.proxy.Proxy;
	
	/**
	 * Parameters Proxy.
	 * <P>
	 * Maintains the parameters object that corresponds to 
	 * the <code>FlashVars</code> passed into the Application 
	 * via the OBJECT/EMBED tag in the HTML wrapper.</P>
	 */
	public class ParamsProxy extends Proxy 
	{
		public static const NAME:String = "ParamsProxy";
		
		/**
		 * Constructor. 
		 */
		public function ParamsProxy( params:Object ) 
		{
	       		super ( NAME, params );
		}
	

		/**
		 * Get the vendorName parameter.
		 */
     		public function get vendorName():String
     		{
     			return params.vendorName as String;
     		}
     
		/**
		 * Get the appName parameter.
		 */
     		public function get appName():String
     		{
     			return params.appName as String;
     		}
     
		/**
		 * Get the appVersion parameter.
		 */
     		public function get appVersion():String
     		{
     			return appVersion as String;
     		}
     
     		/**
     		 * The parameters supplied to the main application.
     		 * <P>
     		 * There are two sources of parameters: the query 
     		 * string of the Application's URL, and the value 
     		 * of the FlashVars HTML parameter.</P> 
     		 */
     		public function get params():Object
     		{
     			return data as Object;
     		}
     	
	}
}